<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>单剑特效 - p5.js</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js"></script>
    <style>
        body {
            margin: 0;
            padding: 20px;
            background: #000;
            color: #fff;
            font-family: Arial, sans-serif;
            text-align: center;
        }
        canvas {
            display: block;
            margin: 20px auto;
            border: 2px solid #333;
        }
        .instructions {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
        }
    </style>
</head>
<body>
    <h1>单剑特效</h1>
    <div class="instructions">
        <p>点击屏幕触发剑光效果</p>
        <p>按空格键重置效果</p>
        <p>自动旋转视角展示剑的3D效果</p>
    </div>
    
    <script src="SingleSword.js"></script>
</body>
</html>